package com.qiang.test1;
/**
 * @package: com.qiang.test1
 * @title: RunGoIt
 * @projectName: burning
 * @description: //TODO
 * @author zhuhongqiang3
 * @date:  2020-08-19 10:58
 * @version: V1.0
 * @retrun com.qiang.test1.burning
 */
public class RunGoIt {

    static ThreadTest1 threadTest1 = new ThreadTest1();

    public static void main(String[] args) throws InterruptedException {

        for (int i = 1; i <= 10; i++) {
            new Thread(() ->{
                for (int j = 1; j <= 2000; j++) {
//                    threadTest1.add();
                }
            },String.valueOf(i)).start();
        }
        while (Thread.activeCount() >2){
            Thread.yield();
        }
//        System.out.println(Thread.currentThread().getName() + "\t finally number value: " + threadTest1.a);
    }
}
